// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import VueRouter from 'vue-router'
import App from './App'
import router from './router/index.js'
import rem from './rem.js'
import filters from './filters'
import axios from 'axios'
import animate from 'animate.css'

import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import { Swipe, SwipeItem } from 'mint-ui'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';

import Vuex from 'vuex'
import store from './store/store.js'

Vue.use(ElementUI)

Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

Vue.use(MintUI);



Vue.prototype.$http = axios;//挂载到vue原型
Vue.config.productionTip = false

//模块化
Object.keys(filters).forEach((key) => Vue.filter(key,filters[key]))

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,//挂载
  store,//挂载 
  components: { App },
  template: '<App/>',
  render: h => h(App),
  data:{
  	Hub:new Vue()
  }
})